package jlu.zqq.po;

import java.sql.Timestamp;

/**
 * FaultRecord entity. @author MyEclipse Persistence Tools
 */

public class FaultRecord implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -9185996222607289156L;
	
	private Integer id;
	private User user;
	private Integer faultId;
	private String fname;
	private String symptom;
	private Timestamp happentime;
	private String results;
	private Timestamp jltime;
	private String fip;
	private String phone;
	private Integer mark;
	private String eventname;

	// Constructors

	/** default constructor */
	public FaultRecord() {
	}

	/** minimal constructor */
	public FaultRecord(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public FaultRecord(Integer id, User user, Integer faultId, String fname,
			String symptom, Timestamp happentime, String results,
			Timestamp jltime, String fip, String phone, Integer mark, String eventname) {
		this.id = id;
		this.user = user;
		this.faultId = faultId;
		this.fname = fname;
		this.symptom = symptom;
		this.happentime = happentime;
		this.results = results;
		this.jltime = jltime;
		this.fip = fip;
		this.phone = phone;
		this.mark = mark;
		this.eventname = eventname;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getFaultId() {
		return this.faultId;
	}

	public void setFaultId(Integer faultId) {
		this.faultId = faultId;
	}

	public String getFname() {
		return this.fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getSymptom() {
		return this.symptom;
	}

	public void setSymptom(String symptom) {
		this.symptom = symptom;
	}

	public Timestamp getHappentime() {
		return this.happentime;
	}

	public void setHappentime(Timestamp happentime) {
		this.happentime = happentime;
	}

	public String getResults() {
		return this.results;
	}

	public void setResults(String results) {
		this.results = results;
	}

	public Timestamp getJltime() {
		return this.jltime;
	}

	public void setJltime(Timestamp jltime) {
		this.jltime = jltime;
	}

	public String getFip() {
		return this.fip;
	}

	public void setFip(String fip) {
		this.fip = fip;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getMark() {
		return this.mark;
	}

	public void setMark(Integer mark) {
		this.mark = mark;
	}

	public String getEventname() {
		return eventname;
	}

	public void setEventname(String eventname) {
		this.eventname = eventname;
	}

	@Override
	public String toString() {
		return "FaultRecord [id=" + id + ", user=" + user + ", faultId="
				+ faultId + ", fname=" + fname + ", symptom=" + symptom
				+ ", happentime=" + happentime + ", results=" + results
				+ ", jltime=" + jltime + ", fip=" + fip + ", phone=" + phone
				+ ", mark=" + mark + ", eventname=" + eventname + "]";
	}

}